<div class="loader"></div>
<style>
.loader {
    position: fixed;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	z-index: 9999;
	background: url('/themes/img/loading.gif') center center no-repeat rgb(249,249,249);
    background-size: auto 100%;
}
</style>
<script>
$(document).ready(function() {
    $('.loader').fadeOut(1000);
})
</script>